﻿@model WebApp.Models.S_gridcolumn

@{
    Layout = "~/Views/Shared/_DialogLayout.cshtml";
}

@using (Html.BeginForm("", "", FormMethod.Post, new { @class = "form-horizontal form-inline", id = "inputform" }))
{
    <div class="dialog-content">
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })

        <input type="hidden" id="Id" value="@Model.Id" class="form-control datafield" data-fieldname="Id" />

        <div class="row">
            <div class="col-xs-12 nopadding">
                <div class="widget-box">
                    <div class="widget-title">
                        <h5>资源描述</h5>
                    </div>
                    <div class="widget-content">
                        <table cellpadding="3" cellspacing="0" border="0" class="inputform">
                            <tr>
                                <td class="td-label"></td>
                                <td class="td-control">
                                    <div data-form="checkbox">
                                        <label class="checkbox">
                                            @Html.CheckBox("Sortable", @Model.Sortable == 1 ? true : false, new { @class = "datafield", @data_fieldname = "Sortable" }) 允许排序
                                        </label>
                                        <label class="checkbox">
                                            @Html.CheckBox("Islist", @Model.Islist == 1 ? true : false, new { @class = "datafield", @data_fieldname = "Islist" }) 列表中显示
                                        </label>
                                        <label class="checkbox">
                                            @Html.CheckBox("Isexport", @Model.Isexport == 1 ? true : false, new { @class = "datafield", @data_fieldname = "Isexport" }) 导出时显示
                                        </label>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Pagekey">页面Key</label></td>
                                <td class="td-control">
                                    @Html.WYCombo("Pagekey", "", @Model.Pagekey, "value", ViewBag.PagekeyList as SelectList, new { @class = "form-control datafield", @data_fieldname = "Pagekey", data_onselected = "getNextSort" })
                                </td>
                                <td class="td-label-left" style="width:200px;">
                                    <label style="color:#999;">（按菜单名命名）</label>
                                </td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Sort">显示顺序</label></td>
                                <td class="td-control">
                                    @Html.TextBox("Sort", @Model.Sort, new { @class = "form-control datafield", @data_fieldname = "Sort" })
                                </td>
                                <td class="td-label-left" style="width:200px;">
                                    <label style="color:#999;"></label>
                                </td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Field">字段ID</label></td>
                                <td class="td-control" style="width:300px;">
                                    @Html.TextBox("Field", @Model.Field, new { @class = "form-control datafield", @data_fieldname = "Field" })
                                </td>
                                <td class="td-label-left" style="width:200px;">
                                    <label style="color:#999;">（对应Model字段名，区分大小写）</label>
                                </td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Title">字段名称</label></td>
                                <td class="td-control">
                                    @Html.TextBox("Title", @Model.Title, new { @class = "form-control datafield", @data_fieldname = "Title" })
                                </td>
                                <td class="td-label-left" style="width:200px;">
                                    <label style="color:#999;"></label>
                                </td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Title_en">英文名称</label></td>
                                <td class="td-control">
                                    @Html.TextBox("Title_en", @Model.Title_en, new { @class = "form-control datafield", @data_fieldname = "Title_en" })
                                </td>
                                <td class="td-label-left" style="width:200px;">
                                    <label style="color:#999;"></label>
                                </td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="TitleReskey">简/繁资源Key</label></td>
                                <td class="td-control">
                                    @Html.TextBox("TitleReskey", @Model.TitleReskey, new { @class = "form-control datafield", @data_fieldname = "TitleReskey" })
                                </td>
                                <td class="td-label-left" style="width:200px;">
                                    <label style="color:#999;">（对应字段名称的资源文件Key值）</label>
                                </td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Width">列宽</label></td>
                                <td class="td-control">
                                    @Html.TextBox("Width", @Model.Width, new { @class = "form-control datafield", @data_fieldname = "Width" })
                                </td>
                                <td class="td-label-left" style="width:200px;">
                                    <label style="color:#999;"></label>
                                </td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Align">对齐方式</label></td>
                                <td class="td-control">
                                    @Html.DropDownList("Align", ViewBag.AlignList as SelectList, new { @class = "form-control datafield", @data_fieldname = "Align" })
                                </td>
                                <td class="td-label-left" style="width:200px;">
                                    <label style="color:#999;"></label>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="dialog-footer">
        <button id="btncancel" class="btn btn-small btn-default">取消</button>
        <button id="btnsave" class="btn btn-small btn-primary">保存</button>
    </div>
}

@section scripts{
    <script type="text/javascript" src="~/Scripts/app/manage/gridcolumn.edit.js?ver=@WebApp.BLL.CommonStr.Ver"></script>
}